﻿using System;
using System.Collections.Generic;
using Aop.Api;
using Aop.Api.Request;
using Aop.Api.Response;
using Aop.Api.Domain;
using Aop.Api.Util;
namespace WCS.Api.Admin.AlipayPayment
{
    public class AlipayUserInfoAuth
    {
        //public static void Main(string[] args)
        //{
           
        //}

        public static AlipayConfig GetAlipayConfig()
        {
            string privateKey = "MIIEowIBAAKCAQEAmgU5KTEcsBMhHw3CwIJlihTFsCIGck5c8wj7AkUGgZ1gavAMdEH1lo9NNtkYTUprw382N5Ca5qO31+7IHL/+tBmWAxkL+N+LudAu0Uu3/v8nSkqOx6RAFLtNkpV2eJW4rZgX8/od8Ce+MSBJzfx1kSHyWFOy/mu0N8xbHAoLYJmYvmhMw9lZ9vfB0iPb09CQLkUx1Xbo6+NkkoYunL7bEdL0fYDUFe7C6tzs3klI0vaG2ON0XVXuQsKFn5OgXdSzElizFO84Y/5RVze8OcGhpEwe1hHxIpbRrf2pYo6ZGpggV6VDGM60NCRuJ+qVFdhaRhNj/AVZLudLz5JPmIoByQIDAQABAoIBADJpoUMNUzGCoWWzsFoolCm1ENvM10VUxvG5r8cXZsDIDUYTWlA3QrZMI17fgifSQyGTIuDfEQSK8+LWwmM+qJS0hzhuW0/Tg72HGbvhx9DMHUUg0EkiRuNCR2rCRyvC/da8IKL37BKuP39+7QliJ+0gKl2kz8Kc6DkXR38O/phYSssrpRvgmMv+vnFUiOizHuBGhqvMXNlI6BRAwUQREg9w1x6lWbkSd+R0eDatjcc5fYRbQOf2ekT1u2KvHeSINY7d7Vtxg2YZnVkbtnXP0DlwhWnb9XhkhqZzBtC9bMjVKRKkM2RiyjH20TbK3eDwpjp65Rqs2+1bNek9Y8Qb97ECgYEA41gH1Bx2ERwwQgOwUwH+LpTDY3UYzn5Qv1POtGVxwOIyfzcRjLhZ8J4u2Y/RUFvo8ji/C/3LBw16XDWtPr14qTutrTSsEf32ZlkFYuFne5oJP7+xkYwEaVsitjFjwwxSe+4hAzpvsl8/IHFs5hIhFomqnoSjpVd3LX3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sOogtwnzjshksTxAN+xoISyW5xdeobo4OOkX5B8LlQIDAQAB";
            AlipayConfig alipayConfig = new AlipayConfig();
            alipayConfig.ServerUrl = "https://openapi.alipay.com/gateway.do";
            //alipayConfig.ServerUrl = "https://openapi.alipaydev.com/gateway.do";
            alipayConfig.AppId = "2021005187608098";//"2021005179674449";//2021005184647562//2021005187608098
            alipayConfig.PrivateKey = privateKey;
            alipayConfig.Format = "json";
            alipayConfig.AlipayPublicKey = alipayPublicKey;
            alipayConfig.Charset = "UTF-8";
            alipayConfig.SignType = "RSA2";
            return alipayConfig;
        }
    }
}
